\section{apriori::itemset$<$ transaction, collection $>$ Class Template Reference}
\label{classapriori_1_1itemset}\index{apriori::itemset@{apriori::itemset}}
{\tt \#include $<$itemset.h$>$}

\subsection*{Public Types}
\begin{CompactItemize}
\item 
typedef transaction::data \bf{data}\label{classapriori_1_1itemset_5031bcff0b36b929432a20024c005c4e}

\item 
typedef transaction::data\_\-ptr \bf{data\_\-ptr}\label{classapriori_1_1itemset_526fcd892410e6a4b6e6da4003fca482}

\item 
typedef transaction::data\_\-coll \bf{data\_\-coll}\label{classapriori_1_1itemset_e21718f0dec397cc13967a6fc4c4bf81}

\item 
typedef transaction::ptr \bf{trans\_\-ptr}\label{classapriori_1_1itemset_288a543661cd89a0f940814bad92c6ee}

\item 
typedef collection$<$ \bf{trans\_\-ptr} $>$ \bf{t\_\-trans\_\-coll}\label{classapriori_1_1itemset_b55281c11ecfc52da8c13d2e2089b007}

\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\bf{itemset} ()\label{classapriori_1_1itemset_b6be7ead156112fb47b94d9c9e1d759e}

\begin{CompactList}\small\item\em Standard constructor. \item\end{CompactList}\item 
\bf{itemset} (const \bf{data\_\-coll} \&tmp)\label{classapriori_1_1itemset_8858430f7f9d89f7588a085520f1f76f}

\begin{CompactList}\small\item\em Constructor which initializes the internal data with tmp. \item\end{CompactList}\item 
\bf{$\sim$itemset} ()\label{classapriori_1_1itemset_7b054a0f06dc618a68e0451db899a0c8}

\item 
void \bf{set\_\-data} (const \bf{data\_\-coll} \&tmp)\label{classapriori_1_1itemset_bc08f4aab6df84923ec4cb89078f5b6a}

\begin{CompactList}\small\item\em Set-method for items. Normally you shouldn't use this! \item\end{CompactList}\item 
list$<$ \bf{data\_\-ptr} $>$ \& \bf{get\_\-items} ()\label{classapriori_1_1itemset_44eda07600a71d4cc3270a5c87cc49ba}

\begin{CompactList}\small\item\em returns a list of the items \item\end{CompactList}\item 
const list$<$ \bf{data\_\-ptr} $>$ \& \bf{get\_\-items} () const \label{classapriori_1_1itemset_1b7a59463770140d715a3e2fe6e2f6e3}

\begin{CompactList}\small\item\em returns a const list of the items \item\end{CompactList}\item 
int \bf{get\_\-support} () const \label{classapriori_1_1itemset_9fcf2fedca72f478939b191f70b8df74}

\begin{CompactList}\small\item\em returns the support value of the itemset \item\end{CompactList}\item 
void \bf{check\_\-support} (const \bf{t\_\-trans\_\-coll} \&col)
\begin{CompactList}\small\item\em checks the support value. \item\end{CompactList}\item 
bool \bf{operator!=} (const \bf{itemset} \&set) const \label{classapriori_1_1itemset_71e234b952166d05bc2f30a22df8c64c}

\begin{CompactList}\small\item\em Simple != implementation. \item\end{CompactList}\item 
bool \bf{operator==} (const \bf{itemset} \&set) const \label{classapriori_1_1itemset_be67dbc80e1ef28424533e9063cbd2c2}

\begin{CompactList}\small\item\em Simple == implementation. \item\end{CompactList}\item 
bool \bf{find} (const \bf{data\_\-ptr} \&ptr) const 
\item 
template$<$class T$>$ void \bf{write} (T \&t) const 
\end{CompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$class transaction, template$<$ class $>$ class collection$>$ class apriori::itemset$<$ transaction, collection $>$}

This class represents an itemset. Template parameters\begin{Desc}
\item[See also:]\doxyref{apriori\_\-alg}{p.}{classapriori_1_1apriori__alg} but they should be created from \doxyref{apriori\_\-alg}{p.}{classapriori_1_1apriori__alg} anyway... \end{Desc}




Definition at line 24 of file itemset.h.

\subsection{Member Function Documentation}
\index{apriori::itemset@{apriori::itemset}!check_support@{check\_\-support}}
\index{check_support@{check\_\-support}!apriori::itemset@{apriori::itemset}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class transaction, template$<$ class $>$ class collection$>$ void \bf{apriori::itemset}$<$ transaction, collection $>$::check\_\-support (const \bf{t\_\-trans\_\-coll} \& {\em col})\hspace{0.3cm}{\tt  [inline]}}\label{classapriori_1_1itemset_612c1b82bb4dc7d3df84aeb7121b748b}


checks the support value. 

Calculates the own support value with the transactions col  is a collection of transactions 

Definition at line 63 of file itemset.h.\index{apriori::itemset@{apriori::itemset}!find@{find}}
\index{find@{find}!apriori::itemset@{apriori::itemset}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class transaction, template$<$ class $>$ class collection$>$ bool \bf{apriori::itemset}$<$ transaction, collection $>$::find (const \bf{data\_\-ptr} \& {\em ptr}) const\hspace{0.3cm}{\tt  [inline]}}\label{classapriori_1_1itemset_af04d806a67ae2df9d462d12afffe33a}


Tries to find ptr in \_\-items \begin{Desc}
\item[Returns:]true is returned, if ptr was found in \_\-items \end{Desc}


Definition at line 107 of file itemset.h.\index{apriori::itemset@{apriori::itemset}!write@{write}}
\index{write@{write}!apriori::itemset@{apriori::itemset}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class transaction, template$<$ class $>$ class collection$>$ template$<$class T$>$ void \bf{apriori::itemset}$<$ transaction, collection $>$::write (T \& {\em t}) const\hspace{0.3cm}{\tt  [inline]}}\label{classapriori_1_1itemset_e43989077d098dc020752d4910f99ff6}


Writes the contents of the collection to the stream t. T must implement the $<$$<$-operator 

Definition at line 123 of file itemset.h.

The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
Desktop/newapriori/itemset.h\end{CompactItemize}
